import { request } from '../utils/index.js';
export default {

    getTheaters: ({ cinemasId, curPage = 1, eachPage = 5 }) => request({
        type: "GET",
        url: "/api/theaters/getTheaters",
        data: { cinemasId, curPage, eachPage }

    }),
    delTheaters: ({ _id }) => request({
        type: "DELETE",
        url: "/api/theaters/delTheaters",
        data: { _id }
    }),
    addTheaters: (data) => request({
        type: "POST",
        url: "/api/theaters/addTheaters",
        data: data
    }),
    patchTheaters: (data) => request({
        type: "PATCH",
        url: "/api/theaters/patchTheaters",
        data: data
    }),
}
